package com.tencent.backstage.dao;
import com.tencent.backstage.entity.Notice;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
@Transactional
public interface NoticeDao extends JpaRepository<Notice,Integer>{
    List<Notice> findAll();
    void deleteById(Integer id);
    Notice findById(Integer id);
}
